
package com.huaweicloud.saaslanding.install.properties;

import static com.huaweicloud.saaslanding.install.constant.ModelConstant.ELB_MEMBER_PREFIX;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * 功能描述
 *
 * @since 2022-03-24
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Validated
@ConfigurationProperties(prefix = ELB_MEMBER_PREFIX)
public class ElbMember {
    /**
     * 云服务器节点IP
     */
    @NotEmpty(message = "ELB下云服务器的IP地址(elb.member.address)不能为空，多个以逗号分隔")
    private String address;

    /**
     * 云服务器 vpc IPV4子网ID
     */
    @NotEmpty(message = "ELB下云服务器IPV4子网id(elb.member.subnetId)不能为空")
    private String subnetId;

}
